import { defineStore } from 'pinia';

interface AppState {
    activeModule: string
}
//应用配置
export const useAppStore = defineStore('appStore', {
    state: (): AppState  => {
        return {
            activeModule: ''
        }
    },
    actions: {
        setModule(activeModule: string) {
            this.activeModule = activeModule
        },
    }
})